package com.auxgroup.smarthome.bean;

import java.util.Arrays;
import java.util.List;

/**
 * Created by fju on 2017/8/29.
 */
public class SleepDiyAttr {
    private Float temperature;
    private Integer windSpeed;

    public SleepDiyAttr() {
    }

    public SleepDiyAttr(Float temperature, Integer windSpeed) {
        this.temperature = temperature;
        this.windSpeed = windSpeed;
    }

    public Float getTemperature() {
        return temperature;
    }

    public void setTemperature(Float temperature) {
        this.temperature = temperature;
    }

    public Integer getWindSpeed() {
        return windSpeed;
    }

    public void setWindSpeed(Integer windSpeed) {
        this.windSpeed = windSpeed;
    }

    public List<Attr> getAttrData(){
        return Arrays.asList(new Attr("temperature",temperature),new Attr("windSpeed",windSpeed));
    }
}
